<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">

    <Script file="comergy.lua" />

    <Frame name="ComergyMainFrame" toplevel="true" clampedToScreen="true" enableMouse="false" movable="true" parent="UIParent">
        <Anchors>
            <Anchor point="CENTER" />
        </Anchors>

        <Frames>
            <Frame name="ComergyMovingFrame">

                <Scripts>
                    <OnMouseDown>
                        if ((button == "LeftButton") or (button == "RightButton")) then
                            self:GetParent():StartMoving()
                        end
                    </OnMouseDown>

                    <OnMouseUp>
                        self:GetParent():StopMovingOrSizing()
                        ComergySavePosition()
                    </OnMouseUp>
                </Scripts>

                <Layers>
                    <Layer level="BACKGROUND">
                        <Texture name="ComergyBG" setAllPoints="true" />
                    </Layer>

                    <Layer level="OVERLAY">
                        <FontString name="ComergyText" inherits="GameFontNormal">
                            <Anchors>
                                <Anchor point="CENTER" relativeTo="ComergyMainFrame" relativePoint="CENTER">
                                    <Offset>
                                        <AbsDimension x="0" y="0" />
                                    </Offset>
                                </Anchor>
                            </Anchors>
                        </FontString>
                        <FontString name="ComergyEnergyText" inherits="GameFontNormal">
                            <Anchors>
                                <Anchor point="RIGHT" relativeTo="ComergyMainFrame" relativePoint="LEFT">
                                    <Offset>
                                        <AbsDimension x="-3" y="0" />
                                    </Offset>
                                </Anchor>
                            </Anchors>
                        </FontString>
                        <FontString name="ComergyComboText" inherits="GameFontNormal">
                            <Anchors>
                                <Anchor point="LEFT" relativeTo="ComergyMainFrame" relativePoint="RIGHT">
                                    <Offset>
                                        <AbsDimension x="3" y="0" />
                                    </Offset>
                                </Anchor>
                            </Anchors>
                        </FontString>
                    </Layer>
                </Layers>
            </Frame>

            <StatusBar name="ComergyEnergyBar1" inherits="StatusBar" DrawLayer="ARTWORK" hidden="true">
            </StatusBar>

            <StatusBar name="ComergyEnergyBar2" inherits="StatusBar" DrawLayer="ARTWORK" hidden="true">
            </StatusBar>

            <StatusBar name="ComergyEnergyBar3" inherits="StatusBar" DrawLayer="ARTWORK" hidden="true">
            </StatusBar>

            <StatusBar name="ComergyEnergyBar4" inherits="StatusBar" DrawLayer="ARTWORK" hidden="true">
            </StatusBar>

            <StatusBar name="ComergyEnergyBar5" inherits="StatusBar" DrawLayer="ARTWORK" hidden="true">
            </StatusBar>

            <StatusBar name="ComergyComboBar1" inherits="StatusBar" DrawLayer="ARTWORK">
            </StatusBar>

            <StatusBar name="ComergyComboBar2" inherits="StatusBar" DrawLayer="ARTWORK">
            </StatusBar>

            <StatusBar name="ComergyComboBar3" inherits="StatusBar" DrawLayer="ARTWORK">
            </StatusBar>

            <StatusBar name="ComergyComboBar4" inherits="StatusBar" DrawLayer="ARTWORK">
            </StatusBar>

            <StatusBar name="ComergyComboBar5" inherits="StatusBar" DrawLayer="ARTWORK">
            </StatusBar>

            <StatusBar name="ComergyPlayerHealthBar" inherits="StatusBar" DrawLayer="ARTWORK">
            </StatusBar>

            <StatusBar name="ComergyTargetHealthBar" inherits="StatusBar" DrawLayer="ARTWORK">
            </StatusBar>

        </Frames>

        <Scripts>

            <OnLoad>
                ComergyOnLoad(self)
            </OnLoad>

            <OnUpdate>
                ComergyOnUpdate(self, elapsed)
            </OnUpdate>
        </Scripts>
    </Frame>

</Ui>
